<h2>Modify User</h2>
<div class="errorval"><?php echo validation_errors(); ?>
<?php echo $error; ?></div>
<p>To modify a user, enter details into the fields below.</p>
<p>NB: A new password must be specified when modifying a user.</p>
<center>
<table>
<?php echo form_open('admin/user_management/modify/' . $user->username); ?>
<tr>
	<th align="right" width=30%>Username:</th>
	<td><?php echo $user->username ?><?php echo form_hidden('username', $user->username); ?></td>
</tr>
<tr>
	<th align="right">Password:</th>
	<td><?php echo form_password('password'); ?></td>
</tr>
<tr>
	<th align="right">Verify Password:</th>
	<td><?php echo form_password('verifypassword'); ?></td>
</tr>
<tr>
	<th align="right">Staff Access:</th>
	<td><input type="checkbox" name="staff_access" value="1" <?php if ($user->staff_access) echo 'checked="yes"'; ?>/></td>
</tr>
<tr>
	<th align="right">Admin Access:</th>
	<td><input type="checkbox" name="admin_access" value="1" <?php if ($user->admin_access) echo 'checked="yes"'; ?>/></td>
</tr>
<tr>
	<th align="right">Super User Access:</th>
	<td><input type="checkbox" name="su_access" value="1" <?php if ($user->su_access) echo 'checked="yes"'; ?>/></td>
</tr>
<tr>
	<th class="tablehead" align="right">Actions</th>
	<td><?php echo form_submit('', 'Submit'); ?></td>
</tr>
<?php echo form_close(); ?>
</table>
</center>
